package com.titan.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.TableGenerator;

@Entity
public class Customer {

	private long id;
	private String firstName;
	private String lastName;

	@TableGenerator(name = "CUSTOMER_GENERATOR", 
			table = "CUSTOMER_PK_GENERATOR_TABLE", 
			allocationSize = 10, 
			initialValue = 1, 
			pkColumnName = "PK_COLUMN", 
			pkColumnValue = "CUSTOMER_ID", 
			valueColumnName = "VALUE_COLUMN")
	@Id
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "CUSTOMER_GENERATOR")
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

}
